#ifndef OTHERTHREAD_H
#define OTHERTHREAD_H

#include <QObject>

#include "database.h"

class OtherThread : public QObject
{
    Q_OBJECT
public:
    explicit OtherThread(QObject *parent = nullptr);
    ~OtherThread();

signals:
    void sendProgress_signal(int all, int valid, int upload);

public slots:
    void startThread_slot();

    void exitThread_slot();

private slots:
    void onSelect_slot();

private:
    DataBase database;

private:
    int m_id = 0;

};

#endif // OTHERTHREAD_H
